DEVELOPMENT = 
PRODUCTION = -O2

CC = g++
CFLAGS = -c -Wall -I./include
LFLAGS = -lmingw32 -lSDLmain -lSDL -lopengl32 -lglu32 -L./lib -mwindows
STAGE = $(DEVELOPMENT)
EXEC = Timeless.exe

SOURCES = src/resource.cc src/tasks.cc src/main.cc

all : main.o resource.o
	$(CC) $(STAGE) $(LFLAGS) -o $(EXEC) build/src/main.o build/src/resource.o

main.o :
	$(CC) $(STAGE) $(CFLAGS) -o ./build/src/main.o src/main.cc

resource.o :
	$(CC) $(STAGE) $(CFLAGS) -o ./build/src/resource.o src/resource.cc

clean :
	rm -rf build/src/*.o
	rm -rf Timeless.exe
